/*
 * HTML5 ✰ Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 *
 * Detailed information about this CSS: h5bp.com/css
 *
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 1em; line-height: 1.4; }

body, button, input, select, textarea { font-family: sans-serif; color: #222; }

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #707070; text-decoration: none;}
a:visited { color: #a5650e; }
a:hover {  }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct color not inheriting in IE6/7/8/9
 * 2. Correct alignment displayed oddly in IE6/7
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 */

button, input { line-height: normal; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 * 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/*
 * Remove inner padding and border in FF3/4: h5bp.com/l
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/*
 * 1. Remove default vertical scrollbar in IE6/7/8/9
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* ==|== primary styles =====================================================
   Author: Sappawish Siripon (@mp3wizard)
   ========================================================================== */

body, header { background-color: #fff!important; }
body {/* background: url(../images/bg-body.png) repeat-x; */font-family: Tahoma; font-size: 12px; }
div.container { width: 1000px; margin: 0 auto; display: block; }
header > h1, header > h2, header > h3 { margin: 0; } 
header { background: url(../images/logo.png) no-repeat left 10px; position: relative; height: 100px; display: block; }
header > nav { background: #777777; height: 44px; line-height: 44px; text-shadow: 1px 1px 0 #333; padding-left: 15px; position: absolute; left: 0; top: 101px; width: 985px; display:none;}
header > nav p { margin: 0; color:#FFF; }
header > nav a { color: #FFF; text-decoration: none; display: inline-block; padding: 0 5px;  }
header > nav a:visited{ color:#FFF;}
header > nav a:hover { color: #CCC; text-decoration: underline; }

#login { position: absolute; right: 0; top: 22px; }
#login p { margin: 0; white-space: nowrap; }
#login p:nth-child(2) { text-align: right; margin-top: 5px; color: #aaa; }
#login p:nth-child(2) img { position: relative; top: -2px;  }
#login input[type=text], #login input[type=password] { width: 84px; height: 23px; padding: 2px 5px 0; background: url(../images/bg-input1.png) no-repeat left top; border: none; margin-right: 3px;}
#login input[value=LOGIN] { width: 63px; height: 25px; background: url(../images/btn-login.png) no-repeat; display: inline-block; position: relative; top: -1px; }
.placeholder { position: relative; }
.placeholder label { position: absolute; left: 5px; top: 0; color: #807f7e; z-index: 5;  }


footer { border-top: solid 1px #e9e9e9; padding: 10px; text-align: center; margin-top: 30px; color: #807f7e; }
footer a { color: #807f7e; display: inline-block; padding: 0 5px; }
footer a:hover { color: #807f7e; text-decoration: underline; }
#copyright { font-size: 11px; }



/* Fix Outline dotted on Firefox */
:-moz-any-link:focus { outline: none; } 
a:active, a:focus{ outline: 0;}

/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
ul.h:before, ul.h:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
ul.h:after { clear: both; }
/* fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
ul.h { zoom: 1; margin: 0; padding: 0; }
ul.h li, ul.h li a { display: block; float: left; margin: 0; list-style: none; }
ul.v { list-style: none; margin: 0; padding: 0; }
ul.v li, ul.v li a {display: block; }

.ui-tabs-hide { display: none; } 

input[type=button] {  }
input[type=button]:hover { box-shadow: 0 0 4px rgba(0,0,0,0.5); 
	border-radius: 2px;
	-webkit-border-radius: 2px; 
	-moz-border-radius: 2px;  
	transition: all 0.35s ease-in-out;
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;}


/* Fix Cross Browser */
.chrome .placeholder label { top: -1px;}
.safari .placeholder label { top: -3px;}
.ie7 .placeholder label { top: 3px; left: 6px;}
.ie8 .placeholder label { top: -1px;}
.ie9 .placeholder label { top: -1px;}
.webkit #login input[value="LOGIN"] { top: -2px; }

.ie7 #login input[type=text], .ie7 #login input[type=password], .ie8 #login input[type=text], .ie8 #login input[type=password] { height: 20px; padding-top: 5px; top: -7px; height: 25px; }
.safari #login input[type=text], .safari #login input[type=password] { position: relative; top: -2px; }
.ie7 #login p:nth-child(2) img { position: relative; top: 0px;  }
.ie8 #login p:nth-child(2) img { position: relative; top: -1px;  }

/* ==|== media queries ======================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */

}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */

}



/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}

/* form register */
#form-register {
    border-left: solid 1px #E5E5E5;
    border-right: solid 1px #E5E5E5;
    border-bottom: solid 1px #E5E5E5;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size: 13px;
    padding-bottom: 17px;
    display: inline-block;
    clear: both;
    width:100%;
}
#form-register div#register-caption{
    font-weight: normal;
    font-size: 12px;
    color: #707070;
    padding: 30px 20px;
}
#form-register div#register-caption h3{
    font-weight: bold;
    font-size: 14px;
    color: #242424;
    padding-bottom: 18px;
}
#form-register div#register-caption h4{
    font-weight: bold;
    font-size: 12px;
    color: #707070;
}
#register-member, #register-shop{
    clear: both;
}
#register-member h3, #register-shop h3{
    background: url(../../images/default/bg/register_bg.jpg) top left repeat-x;
    padding-left: 20px;
    font-weight: normal;
    font-size: 14px;
    color: #242424;
    line-height: 25px;
    padding-bottom: 20px;
}
#register-member p,
#register-shop p,
#register-shop2 p{ 
    clear: both;
    padding-bottom: 20px;   
}
#register-member p span,
#register-shop p span,
#register-shop2 p span
{
    float: left;
    font-size: 14px;
}
#register-member label,
#register-shop label,
#register-shop2 label{
    float: left;
    display: inline-block;
    width: 200px;
    padding-left: 95px;

    font-size: 14px;
}
#register-member label span,
#register-shop label span,
#register-shop2 label span
{
    float: right;
    padding-right: 30px;
}
#register-member input[type="text"],
#register-member input[type="email"],
#register-member input[type="password"],
#register-shop input[type="text"],
#register-shop input[type="email"],
#register-shop input[type="password"],
#register-shop select,
#register-shop textarea,
#register-shop2 input[type="text"],
#register-shop2 select,
#register-shop2 textarea,
#form-login input[type="text"],
#form-login input[type="password"]
{
    float: left;
    width: 143px;
    height: 25px;
    border: solid 1px #E5E5E5;
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(50%, #EEEEEE), to(#FFFFFF));
    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 8px);
    box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    -moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    -webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}
#register-shop input[type="text"],
#register-shop2 input[type="text"],
#register-shop textarea,
#register-shop2 textarea
{
    width: 192px;
}
#register-shop select,
#register-shop2 select
{
    width: 194px;
}
#register-shop textarea,
#register-shop2 textarea
{
    height: 64px;
}
#register-member input[type="button"],
#register-shop input[type="button"]
{
    background: url(../../images/default/button/button_bg.jpg) top center no-repeat;
    width: 98px;
    height: 26px;
    border: 0;
    font-weight: bold;
    font-size: 12px;
    color: #707070;
    line-height: 26px;
    margin: 0;
    padding: 5px 0;
}
#register-shop2 p.remark {
    padding-left: 95px;
}
#register-shop2 p span.button-submit,
#register-shop2 p span.button-cancel
{
    width: 98px;
    height: 28px;
    border: 0;
    font-weight: bold;
    font-size: 12px;
    color: #FFF;
    line-height: 26px;
    margin: auto 0;
    text-align: center;
}
#register-shop2 p span.button-submit{
    background: url(../../images/default/button/button-submit.jpg) top center no-repeat;
}
#register-shop2 p span.button-cancel{
    background: url(../../images/default/button/button-cancel.jpg) top center no-repeat;
}

#register-shop2{
    float: left;
    width: 520px;
    padding: 0px;
    /*border: solid 1px #f00;*/
}

/*google map*/
#google-map {
    float: left;
    width: 470px;
}
#google-map p{
    padding: 0px;
    margin: 0px;
}
#google-map label{
    font-weight: bold;
    font-size: 12px;
    padding: 0;
}
#google-map input[type="text"]{
    width: 192px;
    height: 22px;
    border: solid 1px #E5E5E5;
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(50%, #EEEEEE), to(#FFFFFF));
    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 8px);
    box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    -moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    -webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    padding: 0px;
}
#google-map img{
    border: solid 8px #b1b0b0;
}

/*form login*/
#form-login{
    float: right;
    width: 300px;
    height: 101px;
}
#form-login input[type="text"],
#form-login input[type="password"]{
    width: 94px;
    height: 22px;
}
#form-login ul{
    float: right;
    padding:0; 
    margin:0;
    list-style: none;
    padding-top: 10px;
}
#form-login ul li, #form-login ul li a{
    float: left;
    padding-left: 5px;
    font-weight: normal;
    font-size: 12px;
    color: #a5650e;
}
#form-login ul li img{
    border: 0px;
    margin: 0;
    padding: 0;
}
#at15s {
    background: url(../images/shop/atbkg.png) repeat scroll 0 0 transparent;
    float: none !important;
    line-height: 1em !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 5px !important;
    position: absolute;
    text-align: left !important;
}
#at15s_inner {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #FFFFFF;
    margin: 0;
    
}
#at15s_head {
    background: none repeat scroll 0 0 #F2F2F2;
    border-bottom: 1px solid #E5E5E5;
    cursor: default;
    padding: 4px;
    position: relative;
}
a#at15sptx {
    color: #4C4C4C;
    font-weight: bold;
    right: 4px;
    text-decoration: none;
    top: 4px;
}
#at15s {
    line-height: 1em !important;
    text-align: left !important;
    font-family: arial,helvetica,tahoma,verdana,sans-serif !important;
    font-size: 12px !important;
}
#at15s_brand {
    right: 4px;
    top: 4px;
}
#at15s_brand, #at16_brand, #at15sptx {
    position: absolute;
}
.at15s_brandx {
    right: 20px !important;
}
#at_hover {
    padding: 4px;
}
.featuredbox
{
    padding-bottom:20px;
    position:relative;
}
.error
{
    color:red;
}
/*category*/
#category{
    width: 1000px;
    display: inline-block;
    clear: both;
}
#category h1,
#sub-category h1{
    margin-top: 20px;
    padding-left: 20px;
}
#category ul{
    margin: 0;
    padding: 0;
    list-style: none;

}
#category ul li{
    float: left;
    width: 300px;
    height: 107px;
    font-size: 12px;
    font-weight: normal;
    color: #393939;
    margin-bottom: 25px;
    margin-right:30px
}
#category ul li h3,
#sub-category ul li h3{
    float: left;
}
#category ul li h3,
#sub-category ul li h3{
    border: solid 1px #eee;
    background-color: #fff;
    -moz-box-shadow: 0 0 5px #888;
    -webkit-box-shadow: 0 0 5px #888;
    box-shadow: 0 0 5px #888;

    margin-right: 15px;
    margin-top: 0;
    padding: 0 1px 1px;
}
#category ul li p,
#sub-category ul li p{
    line-height: 18px;
    padding: 0px;
    margin: 0;
    
}

/*sub category*/
#sub-category{
    float: left;
    width: 676px;
    display: inline-block;
    /*border: solid 1px #f00;*/
}
#sub-category ul{
    margin: 0;
    padding: 0;
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
}
#sub-category ul li{
    float: left;
    width: 300px;
    height: 107px;
    font-size: 12px;
    font-weight: normal;
    color: #393939;
    margin-bottom: 25px;
    /*border: solid 1px #f00;*/
}

/*sub category side*/
#sub-category-side{
    float: right;
    width: 320px;
    background: #fdfdfd url(../../images/default/bg/category-sub_bg.jpg) top left repeat-y;
    display: inline-block;
}
#sub-category-side ul{
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 20px;
}
#sub-category-side ul h1{
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-left: 35px;
    margin-bottom: 12px;
}
#sub-category-side ul li{
    width: 220px;
    height: 35px;
    line-height: 35px;
    background: url(../../images/default/icons/bullet_01.jpg) left center no-repeat;
    margin-left: 35px;
    padding-left: 24px;
    /*font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;*/
    font-size: 13px;
    font-weight: normal;
    color: #292929;
    /*border: solid 1px #f00;*/
}
#sub-category-side ul li a{
    color: #292929;
    text-decoration: none;
}
#sub-category-side ul li a:hover{
    color: #fe7a16;
}
#sub-category-side ul img{
    margin: 0 auto;
    text-align: center;
    margin-left: 33px;
}
#sub-category-side ul li:not(:nth-child(2)){
    border-top: solid 1px #ccc;
}
#sub-category-side ul li:last-child{
    margin-bottom: 20px;
    border-bottom: solid 4px #ececec;
}

.cat-title
{
    width:140px;
    overflow:hidden;
    height:18px;
}
.cat-description
{
    width:140px;
    overflow:hidden;
    height:50px;
}
/*pagination*/
#pagination{

    margin-right: 20px;
    clear: both;
}
#pagination ul{
    float: right;
    margin: 0;
    padding: 0;
    list-style: none;
}
#pagination ul li
{
    float: left;
    width: 26px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    border: solid 1px #eee;
    background-color: #d9d7d7;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    margin-right: 5px;
    line-height: 24px;
    text-align: center;
}
#pagination ul li.current,
#pagination ul li:hover{
    background-color: #333;
    cursor: pointer;
}
#pagination ul li.current a,
#pagination ul li:hover a{
    color: #fff;
}
#pagination ul li a{
    color: #555;
    text-decoration: none;
}
#pagination ul li:first-child{
    width: 82px;
    background-color: #d9d7d7;
    cursor: default;
}
#advance{
    background: none repeat scroll 0 0 #f7f8f2;
    clear: both;
    padding: 25px 0 0 25px;
    text-align: right;
    height:50px;
    
    
}
